<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{Stock_Title}</title>
<link rel="stylesheet" href="../../css/mem_report.css" type="text/css">
<script language="JavaScript1.2" type="text/javascript" src="/inc/admin_envirset.js"></script>
<script language="JavaScript">
<!--
strRowClassName = "crig";

function Account(intSID){
	with(document.AccountForm){
		StockID.value = intSID;
		submit();
	}
}

function ReportType(intLID, intBT, intWT){
	with(document.BetForm){
		LottoID.value = intLID;
		Bet_Type.value = intBT;
		WagerType.value = intWT;
		submit();
	}
}

function BetAll(){
	with(document.BetForm){
		WagerType.value = "0";
		MemID.value = "";
		submit();
	}
}

function BetSupple(intMID){
	with(document.BetForm){
		WagerType.value = "5";
		MemID.value = intMID;
		submit();
	}
}

function ComSupple(intMID){
	with(document.BetForm){
		WagerType.value = "1";
		MemID.value = intMID;
		submit();
	}
}
//-->
</script>
</head>

<body class="MyBody">
<form action="Main_index.php" method="get" name="AccountForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="StockID" value="">
	<input type="hidden" name="Types" value="{Show_Types}">
	<input type="hidden" name="LottoID" value="{Show_Lotto_Type}">
	<input type="hidden" name="GambleID" value="{Show_GambleID}">
	<input type="hidden" name="Bet_Type" value="{Show_Bet_Type}">
	<input type="hidden" name="PayupDate_0" value="{Show_PayupDate_0}">
	<input type="hidden" name="PayupDate_1" value="{Show_PayupDate_1}">
</form>

<form action="Bet_List.php" method="get" name="BetForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="Types" value="{Show_Types}">
	<input type="hidden" name="MemID" value="">
	<input type="hidden" name="LottoID" value="{Show_Lotto_Type}">
	<input type="hidden" name="GambleID" value="{Show_GambleID}">
	<input type="hidden" name="Bet_Type" value="{Show_Bet_Type}">
	<input type="hidden" name="PayupDate_0" value="{Show_PayupDate_0}">
	<input type="hidden" name="PayupDate_1" value="{Show_PayupDate_1}">
	<input type="hidden" name="WagerType" value="0">
</form>

<table width="840" border="0" cellspacing="0" cellpadding="0" class="cmti">
  <tr> 
    <td>{Stock_Title} -- {List_Lotto} : {LottoContent} -- {List_BetDate} : {Show_PayupDate_0} ~ {Show_PayupDate_1} -- {List_BetType} : {BetTypeContent} 
      <input type="button" value="{Search}" class="zabutton" onclick="location.href='Director_index.php?op=Search'">
    </td>
  </tr>
</table>
<div class="ctabdv" id="ReportTable"> 
  <table border="0" cellspacing="1" cellpadding="0" class="ctab">
    <tr class="ctiport"> 
      <td width="100">{Stock}</td>
      <td width="40">{Bet_No}</td>
      <td width="70">{Bet_Stakes}</td>
      <td width="70">{Member}</td>
      <td width="70">{Agent_Result}</td>
      <td width="70">{GAgent_Result}</td>
	  <td width="70">{Stock}</td>
      <td width="70">{Stock_Result}</td>
<!-- @ Director Cont1 Start @ //-->
      <td width="30">{Bet_Ratio}</td>
	  <td width="70">{Director_RateWin}</td>
	  <td width="70">{Director_Comm}</td>
      <td width="70">{Director_Win}</td>
      <td width="30">{Bet_Ratio}</td>
      <td width="70">{Director_Result}</td>
<!-- @ Director Cont1 End @ //-->
      <td width="70">{Real_Stakes}</td>
	  <td width="70">{Real_Stakes}%</td>
    </tr>
<!--@ StockResult Start @//-->
    <tr class="crig"> 
      <td align="left">{Show_Stock}</td>
      <td>{totals}</td>
      <td><a href="JavaScript:Account('{Show_StockID}')">{MemStake}</a></td>
      <td>{SubIncome}</td>
      <td>{SubRateResult}</td>
      <td>{MainRateResult}</td>
	  <td>{StockResult}</td>
      <td style="background-color: #FFFFB3;">{StockRateResult}</td>
<!-- @ Director Cont2 Start @ //-->
      <td>{DirectorStockRate}</td>
	  <td>{DirectorRateWin}</td>
	  <td>{DirectorComm}</td>
      <td>{DirectorWin}</td>
      <td>{DirectorRate}</td>
      <td style="background-color: #FFD9D9;">{DirectorRateResult}</td>
<!-- @ Director Cont2 End @ //-->
      <td>{realMemStake}</td>
	  <td>{realMemStake%}</td>
    </tr>
<!--@ StockResult End @//-->
<!--@ DirectorResult Start @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{sumtotals}</td>
      <td>{sumMemStake}</td>
      <td>{sumSubIncome}</td>
      <td>{sumSubRateResult}</td>
      <td>{sumMainRateResult}</td>
	  <td>{sumStockResult}</td>
	  <td>{sumStockRateResult}</td>
<!-- @ Director Cont3 Start @ //-->
      <td>&nbsp;</td>
	  <td>{sumDirectorRateWin}</td>
	  <td>{sumDirectorComm}</td>
      <td>{sumDirectorWin}</td>
      <td>&nbsp;</td>
      <td>{sumDirectorRateResult}</td>
<!-- @ Director Cont3 End @ //-->
      <td>{sumrealMemStake}</td>
	  <td>{sumrealMemStake%}</td>
    </tr>
<!--@ DirectorResult End @//-->

<!--@ SuppleContent Start @//-->
    <tr class="crig">
      <td colspan="16">&nbsp;</td>
    </tr>
    <tr class="ctiport">
      <td colspan="16">{Supple_Title}</td>
    </tr>
    <tr class="ctiport"> 
      <td width="100">{Director}</td>
      <td width="40">{Bet_No}</td>
      <td width="70">{Bet_Stakes}</td>
      <td width="70">{Member}</td>
      <td width="70">{Agent_Result}</td>
      <td width="70">{GAgent_Result}</td>
	  <td width="70">{Stock}</td>
      <td width="70">{Stock_Result}</td>
<!-- @ Director Cont1 Start @ //-->
      <td width="30">{Bet_Ratio}</td>
	  <td width="70">{Director_RateWin}</td>
	  <td width="70">{Director_Comm}</td>
      <td width="70">{Director_Win}</td>
      <td width="30">{Bet_Ratio}</td>
      <td width="70">{Director_Result}</td>
<!-- @ Director Cont1 End @ //-->
      <td width="70">{Real_Stakes}</td>
	  <td width="70">{Real_Stakes}%</td>
    </tr>
<!--@ SuppleStockResult Start @//-->
    <tr class="crig"> 
      <td align="left">{Show_Stock}</td>
      <td>{totals}</td>
      <td><a href="JavaScript:BetSupple('{Show_StockID}')">{MemStake}</a></td>
      <td>{SubIncome}</td>
      <td>{SubRateResult}</td>
      <td>{MainRateResult}</td>
	  <td>{StockResult}</td>
      <td style="background-color: #FFFFB3;">{StockRateResult}</td>
<!-- @ Director Cont2 Start @ //-->
      <td>{DirectorStockRate}</td>
	  <td>{DirectorRateWin}</td>
	  <td>{DirectorComm}</td>
      <td>{DirectorWin}</td>
      <td>{DirectorRate}</td>
      <td style="background-color: #FFD9D9;">{DirectorRateResult}</td>
<!-- @ Director Cont2 End @ //-->
      <td>{realMemStake}</td>
      <td>{realMemStake%}</td>
    </tr>
<!--@ SuppleStockResult End @//-->
<!--@ SuppleDirectorResult Start @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{sumtotals}</td>
      <td>{sumMemStake}</td>
      <td>{sumSubIncome}</td>
      <td>{sumSubRateResult}</td>
      <td>{sumMainRateResult}</td>
	  <td>{sumStockResult}</td>
	  <td>{sumStockRateResult}</td>
<!-- @ Director Cont3 Start @ //-->
      <td>&nbsp;</td>
	  <td>{sumDirectorRateWin}</td>
	  <td>{sumDirectorComm}</td>
      <td>{sumDirectorWin}</td>
      <td>&nbsp;</td>
      <td>{sumDirectorRateResult}</td>
<!-- @ Director Cont3 End @ //-->
      <td>{sumrealMemStake}</td>
      <td>{sumrealMemStake%}</td>
    </tr>
<!--@ SuppleDirectorResult End @//-->
<!--@ SuppleContent End @//-->

<!--@ CompanySupple Start @//-->
<!---------------------------------------------------q?f---------------------------------------------------------------//-->
    <tr class="crig">
      <td colspan="16">&nbsp;</td>
    </tr>
    <tr class="ctiport">
      <td colspan="16">{SuppleCom_Title}</td>
    </tr>
    <tr class="ctiport"> 
      <td>{Bet_Name}</td>
      <td>{Bet_No}</td>
      <td>{Bet_Stakes}</td>
      <td colspan="6">&nbsp;</td>
      <td>{Stock_Result}</td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
<!--@ SuppleComResult Start @//-->
    <tr class="crig"> 
      <td align="left">{Show_Director}</td>
      <td>{totals}</td>
      <td><a href="JavaScript:ComSupple('{Show_DirectorID}')">{MemStake}</a></td>
      <td colspan="6">&nbsp;</td>
      <td style="background-color: #FFFFB3;">{StockRateResult}</td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
<!--@ SuppleComResult End @//-->
<!--@ SuppleCompanyResult Start @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{sumtotals}</td>
      <td>{sumMemStake}</td>
      <td colspan="6">&nbsp;</td>
      <td>{sumStockRateResult}</td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
<!--@ SuppleCompanyResult End @//-->
<!---------------------------------------------------q?f---------------------------------------------------------------//-->
<!--@ CompanySupple End @//-->

<!--@ DirectorReport Start @//-->
    <tr class="crig">
      <td colspan="16">&nbsp;</td>
    </tr>
    <tr class="ctiport">
      <td colspan="16">{Sum}</td>
    </tr>
<!--@ ALLResult Start @//-->
    <tr class="cmto"> 
      <td>{Sum}</td>
      <td>{Ctotals}</td>
      <td>{CMemStake}</td>
      <td>{CSubIncome}</td>
      <td>{CSubRateResult}</td>
      <td>{CMainRateResult}</td>
	  <td>{CStockResult}</td>
      <td>{CStockRateResult}</td>
<!-- @ Director Cont4 Start @ //-->
      <td>&nbsp;</td>
	  <td>{CDirectorRateWin}</td>
	  <td>{CDirectorComm}</td>
      <td>{CDirectorWin}</td>
      <td>&nbsp;</td>
      <td>{CDirectorRateResult}</td>
<!-- @ Director Cont4 End @ //-->
      <td align="right">{CrealMemStake}</td>
	  <td align="right">{CrealMemStake%}</td>
    </tr>
<!--@ ALLResult End @//-->
<!--@ DirectorReport End @//-->

<!--@ StockReport Start @//-->
    <tr class="crig">
      <td colspan="16">&nbsp;</td>
    </tr>
    <tr class="ctiport">
      <td colspan="16">{Sum}</td>
    </tr>
    <tr class="ctiport">
      <td>{Bet_Name}</td>
      <td>{Bet_No}</td>
      <td>{Bet_Stakes}</td>
      <td colspan="2">{WinLose}</td>
      <td colspan="4">{Comm}</td>
      <td>{Stock_Result}</td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
<!--@ ALLResult Start @//-->
    <tr class="cmto"> 
      <td>{Sum}</td>
      <td>{Ctotals}</td>
      <td>{CMemStake}</td>
      <td colspan="2">{CWinLose}</td>
      <td colspan="4">{CComm}</td>
      <td>{CStockRateResult}</td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
<!--@ ALLResult End @//-->
<!--@ StockReport End @//-->
  </table>
</div>
</body>
</html>
